
/*
规则定义
 */
var mongoose = require('mongoose');
 var materializedPlugin = require('mongoose-materialized');
var schema = new mongoose.Schema({ 
    type:Number,
    text:String
    // cateId:mongoose.Schema.ObjectId,
   
});

schema.plugin(materializedPlugin);
module.exports  = mongoose.model('newsCate',  schema,'newscate'); // Model.paginate()